/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import conf.HibernateUtil;
import java.util.Iterator;
import java.util.List;
import javassist.bytecode.Descriptor;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author Misja
 */
public class RetrieveUsers {

    public RetrieveUsers() {
    }

    @BeforeClass
    public static void setUpClass() {
    }

    @AfterClass
    public static void tearDownClass() {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }
    // TODO add test methods here.
    // The methods must be annotated with annotation @Test. For example:
    //
    // @Test
    // public void hello() {}

    @Test
    public void retrieveUsers() {
//        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
//        session.beginTransaction();
//
//        List<User> result;
//
//        try {
//            result = session.createQuery("Select userName, password from Twitterer").list();
//            session.getTransaction().commit();
//           
//        } catch (HibernateException e) {
//            session.getTransaction().rollback();
//            assert false;
//        }
//
//        assertTrue(true);

    }
}